home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 21
/
Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso
/
Aminet
/
gfx
/
misc
/
VideoEasel.lha
/
Video Easel
/
CAMRexx
/
Beats_Me.rexx
next >
Wrap
OS/2 REXX Batch file
|
1995-03-31
|
753b
|
36 lines
/* Beats-me by an idea of Toffoli, in CAMRexx by THOR */
MakeAlgorithm:
PLANEALGORITHM neumann centers
return
MakePlane:
if plane=0 | plane=1 then; do
select
when alts=0 then
beat=norths
when alts=1 then
beat=souths
when alts=2 then
beat=wests
when alts=3 then
beat=easts
end
new=centers+1
if new=4 then
new=0
if beat=new then
SETPLANES new
else SETPLANES centers
end
if plane=2 then; do
new=((south & east) ^ west ^ north ^ center) ^ center_
SETPLANE new
end
if plane=3 then; do
new=((south_ & west_) ^ east_ ^ north_ ^ center_) ^ center
SETPLANE new
end
return